/**
 * @file serverthread.cpp
 * @brief ServerThread class methods implementation
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; version 3 of the License.
 *
 * @author VestniK (Sergey N.Vidyuk) sir.vestnik@gmail.com
 * @date 14 Mar 2010
 */
#include "serverthread.h"

#include "server.h"

using namespace mjn;

ServerThread::~ServerThread() {
    if ( this->isRunning() ) {
        this->quit();
        this->wait();
    }
}

void ServerThread::run() {
    Server server;
    exec();
}

